package neu.soft.feignclient;

import neu.soft.entity.DO.Province;
import neu.soft.entity.OperationWarehouse;
import neu.soft.query.WarehousePageQuery;
import neu.soft.vo.PageBean;
import neu.soft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "operation-server",fallbackFactory = FindInboundRoomIdFallBackFactory.class)
public interface FindInboundRoomId {
    @RequestMapping("/province")
    ResultBean<Province> getLoc();
    @RequestMapping("/warehouse/page")
    ResultBean<PageBean<OperationWarehouse>> findByPage(@RequestBody WarehousePageQuery warehouseQuery);


}
